package com.couldsail.takeaway.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("shopping_cart")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;

    //名称
    private String name;
    // 描述
    private String description;
    //用户id
    private String userId;

    //菜品id
    @TableField(value = "product_id")
    private String productId;

    //菜品id
    @TableField(value = "shop_id")
    private String shopId;

    //
    @TableField(value = "product_specs")
    private String productSpecs;

    //数量
    private Integer number;

    //金额
    private Double amount;

    //图片
    @TableField(value = "image_url")
    private String imageUrl;
    @TableField(value = "create_time")
    private LocalDateTime createTime;
}
